Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle negative height & width in image annotations #7116

Conversation

scottbell
Copy link
Contributor

@scottbell scottbell commented Oct 5, 2023

Closes #7083

Describe your changes:

If the height or width are negative due the user dragging back and to the left, or forward and up, handle this properly when adding to the flatbush index.

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Is this change backwards compatible? For example, developers won't need to change how they are calling the API or how they've extended core plugins such as Tables or Plots.

Author Checklist

  • Changes address original issue?
  • Tests included and/or updated with changes?
  • Command line build passes?
  • Has this been smoke tested?
  • Testing instructions included in associated issue OR is this a dependency/testcase change?

Reviewer Checklist

  • Changes appear to address issue?
  • Reviewer has tested changes by following the provided instructions?
  • Changes appear not to be breaking changes?
  • Appropriate automated tests included?
  • Code style and in-line documentation are appropriate?
  • Has associated issue been labelled unverified? (only applicable if this PR closes the issue)
  • Has associated issue been labelled bug? (only applicable if this PR is for a bug fix)

@scottbell scottbell linked an issue Oct 5, 2023 that may be closed by this pull request
7 tasks
@deploysentinel
Copy link

deploysentinel bot commented Oct 5, 2023

Current Playwright Test Results Summary

✅ 14 Passing

Run may still be in progress, this comment will be updated as current testing workflow or job completes...

(Last updated on 10/06/2023 05:04:38pm UTC)

Run Details

Running Workflow e2e-couchdb on Github Actions

Commit: 3084032

Started: 10/06/2023 04:59:41pm UTC

View Detailed Build Results


Current Playwright Test Results Summary

✅ 141 Passing - ⚠️ 3 Flaky

Run may still be in progress, this comment will be updated as current testing workflow or job completes...

(Last updated on 10/06/2023 05:04:38pm UTC)

Run Details

Running Job e2e-stable on CircleCI

Commit: 3084032

Started: 10/06/2023 04:57:38pm UTC

⚠️ Flakes

📄   functional/plugins/notebook/restrictedNotebook.e2e.spec.js • 2 Flakes

Top 1 Common Error Messages

null

2 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Restricted Notebook with a page locked and with an embed @addinit Allows embeds to be deleted if page unlocked @addinit
Retry 1Initial Attempt
8.33% (7) 7 / 84 runs
failed over last 7 days
45.24% (38) 38 / 84 runs
flaked over last 7 days
Restricted Notebook with a page locked and with an embed @addinit Disallows embeds to be deleted if page locked @addinit
Retry 1Initial Attempt
0% (0) 0 / 75 runs
failed over last 7 days
33.33% (25) 25 / 75 runs
flaked over last 7 days

📄   functional/planning/timelist.e2e.spec.js • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Time List Create a Time List, add a single Plan to it and verify all the activities are displayed with no milliseconds
Retry 1Initial Attempt
0% (0) 0 / 125 runs
failed over last 7 days
54.40% (68) 68 / 125 runs
flaked over last 7 days

View Detailed Build Results


@codecov
Copy link

codecov bot commented Oct 5, 2023

Codecov Report

Merging #7116 (3084032) into master (734a8dd) will decrease coverage by 0.10%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #7116      +/-   ##
==========================================
- Coverage   55.85%   55.76%   -0.10%     
==========================================
  Files         650      650              
  Lines       26092    26103      +11     
  Branches     2519     2521       +2     
==========================================
- Hits        14574    14556      -18     
- Misses      10823    10843      +20     
- Partials      695      704       +9     
Flag Coverage Δ *Carryforward flag
e2e-full 41.85% <ø> (-0.02%) ⬇️ Carriedforward from 5fcd118
e2e-stable 57.28% <ø> (+0.03%) ⬆️
unit 49.32% <0.00%> (-0.13%) ⬇️

*This pull request uses carry forward flags. Click here to find out more.

Files Coverage Δ
...c/plugins/imagery/components/AnnotationsCanvas.vue 2.43% <0.00%> (-0.18%) ⬇️

... and 12 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 734a8dd...3084032. Read the comment docs.

@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Oct 6, 2023
@scottbell scottbell marked this pull request as ready for review October 6, 2023 09:06
@scottbell scottbell requested a review from ozyx October 6, 2023 09:06
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Oct 6, 2023
Copy link
Contributor

@ozyx ozyx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Just a couple minor suggestions before we merge

@scottbell scottbell requested a review from ozyx October 6, 2023 16:56
@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Oct 6, 2023
@@ -124,6 +122,23 @@ export default {
this.selectedAnnotations = annotations;
this.$emit('annotations-changed', annotations);
},
transformAnnotationRectangleToFlatbushRectangle(annotationRectangle) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perfect!

Copy link
Contributor

@ozyx ozyx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤌

@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Oct 6, 2023
@scottbell scottbell merged commit 084784a into master Oct 6, 2023
17 checks passed
@scottbell scottbell deleted the 7083-it-is-possible-to-create-image-annotations-that-cannot-be-selected branch October 6, 2023 17:08
@unlikelyzero unlikelyzero added this to the Target:3.2.0 milestone Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

It is possible to create image annotations that cannot be selected
3 participants